package com.leinao.utils.banner;


import lombok.extern.slf4j.Slf4j;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * banner
 *
 * @author zhong.wang
 * @date 2024/9/26
 */
@Slf4j
public class SuccessBannerUtils {
    /**
     * 打印banner
     */
    public static void banner() {
        try (InputStream is = SuccessBannerUtils.class.getResourceAsStream("/successBanner.txt")) {
            BufferedReader br = new BufferedReader(new InputStreamReader(is));
            String line = "";
            while ((line = br.readLine()) != null) {
                log.info(line);
            }
        } catch (Exception e) {
            log.error("banner file not exists");
        }
    }
}
